{include file="common/header"}
<div class="content-wrapper">
    <section class="content-header">
        <h1>
            排行奖励设置
            <small>排行奖励设置</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> 排行奖励设置</a></li>
            <li class="active">排行奖励设置</li>
        </ol>
    </section>
    <section class="content">
        <div class="row">
            <div class="col-xs-12">
                <div class="nav-tabs-custom">
                    <!-- Tabs within a box -->
                    <ul class="nav nav-tabs">
                        <li class="active"><a href="#base" data-toggle="tab">排行奖励设置</a></li>
                    </ul>
					<h2>#直接修改奖励值点击空白处即可完成修改</h2>
                    <div class="page-content" style="padding: 20px 0">
                   
                            <div class="tab-content">
                                <div class="tab-pane active" id="base">
								<table>
									<tr>
										<th>排名</th>
										<th>奖励</th>
										
									</tr>
									
								{volist name="jl" id="v"}
                                    <tr>
										<td>弟{$v.id}名</td>
										<td><input type="text" class="point" data-id="{$v.id}" value="{$v.point}"/></td>
									</tr>
								{/volist}
									
                                 </table>
                                  
                                </div>
                            </div>
                       
                    </div>
                    <script type="text/javascript">
                        $('.point').change(function(){
							var i = $('.point').index(this);
						
							$.post(
                                    window.location.href,
                                    {
										point:$('.point').eq(i).val(),
										id:$('.point').eq(i).attr('data-id')
									},
                                    function (res) {
                                        message(res.message,res.redirect,res.type)
                                    },'json'
                                );
						})
                    </script>
                </div>
                <!-- /.nav-tabs-custom -->
            </div>
            <!-- /.col -->
        </div>
    </section>
</div>
{include file='common/ufooter'}
